package com.android.baseconfig.constact;/*
 * -----------------------------------------------------------------
 * Copyright © 2016年 clife. All rights reserved.
 * Shenzhen H&T Intelligent Control Co.,Ltd.
 * -----------------------------------------------------------------
 * File: AppConstant.java
 * Create: 16/6/11 18:08
 * Author: uuxia-mac
 * App基础数据常量类
 */

import android.util.Log;

import com.google.gson.Gson;
import com.google.gson.reflect.TypeToken;

import java.lang.reflect.Type;
import java.util.Map;

public class AppConstant {

    /**
     * AppId
     **/
    public static String APPID = "30048";

    /**
     * AppSecret
     **/
    public static String APP_SECRET = "9e0ab42cc3b54fca8c56affa6be059cf";

    public static void main(String[] args) {
        String json = "{\n" +
                "    \"data\": 1468993603787,\n" +
                "    \"code\": 100010104,\n" +
                "    \"msg\": \"timestamp timeout\"\n" +
                "}";

        Gson gson = new Gson();
        Type type = new TypeToken<Map<String, String>>() {
        }.getType();
        Map ss = gson.fromJson(json, type);
        Log.d("", ss.toString());
    }
}
